import home from './pages/home'
import about from './pages/about'
import article from './pages/article'
import archive from './pages/archive'
import apply from './pages/apply'
import createArchive from './pages/createArchive'
import login from './pages/login'
import register from './pages/register'
import personinfo from './pages/personinfo'
import error from './pages/error.vue'
const routes = [
{
	path:'/',
    component:home
},
{
	path:'/home',
	name:'home',
    component:home
},
{
    path:'/about',
    name:'about',
    component:about
},
{
    path:'/create',
    name:'create',
    component:createArchive
},
{
    path:'/login',
    name:'login',
    component:login
},
{
    path:'/register',
    name:'register',
    component:register
},
{
    path:'/personinfo',
    name:'personinfo',
    component:personinfo
},
{
    path:'/archive',
    name:'archive',
    component:archive
},
{
    path:'/tag/:name',
    name:'tag',
    component:archive
},
{
    path:'/article',
    name:'article',
    component:article
},
{
    path:'/apply',
    name:'apply',
    component:apply
},
{
    path:'/error',
    name:'error',
    component:error
},
{
    path:'*',
    redirect:'/'
}
]

export default routes;
